package com.streamkar.util;

import java.util.Map;

/**
 *
 */
public class StringReplaceHelper {

    public static String replaceStr(String str, Map<String, String> paramsMap) throws IllegalAccessException {
        for (Map.Entry<String, String> entry : paramsMap.entrySet()) {
            str = str.replace("{{" + entry.getKey() + "}}", entry.getValue());
        }
        return str;
    }
}
